 /**
 * Description: 系统用户实体
 * Copyright:Copyright 2018 nfky.com. All rights reserved
 * @author:xk
 * @since:0.0.1
 * Create at:2018-01-10 下午 19:40:19
 *  
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2018-01-10   xk       0.0.1     Initial
 */
package com.metro.paperless.sys.beans.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.metro.core.beans.entity.BaseEntity;
import java.util.Date;
import com.metro.utils.DateUtil;
 /**
 * 系统用户实体<br>
 *
 * @author xk
 * @since [0.0.1]
 * @version [0.0.1, 2018-01-10]
 */
@Data()
@EqualsAndHashCode(callSuper = false)
public class SysUserEntity extends BaseEntity{
    private static final long serialVersionUID=1L;
    //账号
    private String account;
    //密码
    private String password;
    //部门
    private Long departmentId;
    //电话
    private String phone;
    //姓名
    private String name;
    //邮箱
    private String email;
    //状态
    private String status;
    //最后登录ip
    private String lastLoginIp;
    //最后登录时间
    private Date lastLoginTime;


    public String getLastLoginTimeStr() {
        return DateUtil.limitDay(this.lastLoginTime);
    }

}
